<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="include/base.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<link rel="shortcut icon" href="../img/favicon.ico" >
	<link rel="stylesheet" href="../css/bootstrap.min.css">
	<link rel="stylesheet" href="../css/jquery.Jcrop.css" type="text/css" />
	 <link rel="stylesheet" href="../css/demos.css" type="text/css" />
	<link rel="stylesheet" href="../css/index.css" />
	<style type="text/css" >
		.myactive{
           background-color:#FBF9E2;
           color:#5476A4;
		}
	</style>
</head>
<body>
	
	<!--top-->
	<%@ include file="include/topcenter.jsp" %>
	
	<!--contain-->
	<div class="contain">
		<%@ include file="include/logocenter.jsp" %>
		
		<div class="middle">
			<div class="middle_left">
				
				<a href="gopic.jspx" class="link2" >
					<span class="link2span1">修改头像</span><br/>
				</a>
				
				<a href="altermes.jspx" class="link2 myactive" >
					<span class="link2span1">修改资料</span><br/>
				</a>
				<a href="userexit.jspx" class="link2" >
					<span class="link2span1">退出系统</span><br/>
				</a>
			</div>
			
			<!--right-->
			
			<div class="middle_right">
				<%@ include file="include/pic.jsp" %>
				
				
				<c:choose>
						<c:when test="${alterpasswordmessage == '修改密码操作完成！！' }">
							<div class="alert alert-success">
				              <button type="button" class="close" data-dismiss="alert">×</button>
				              <strong>Well done!</strong> ${alterpasswordmessage }
				            </div>
						</c:when>
						<c:otherwise>
							<c:if test="${not empty alterpasswordmessage }">
								<div class="alert alert-error">
					              <button type="button" class="close" data-dismiss="alert">×</button>
					              <strong>Oh snap!</strong> ${alterpasswordmessage }
					            </div>
							</c:if>
							
						</c:otherwise>
					</c:choose>
					<%
						request.getSession().removeAttribute("alterpasswordmessage");
					%>
				
				
				
				
	            
				  		<div>
					<h4 style="font-size:20px;margin-top:20px;"><i class=" icon-pencil" style="margin-top:5px;"></i>修改资料</h4>
					<hr style="margin-bottom:0px;"/><hr style="margin-top:0px;"/>
					<form class="form-horizontal" action="altermes.jspx" method="post">
					  
					  <div class="control-group">
					    <label class="control-label" for="inputPassword">昵称：</label>
					    <div class="controls">
					      <input name="username" type="text" id="inputPassword" value="${user.username }" placeholder="username">
					    </div>
					  </div>
					  <input type="hidden" value="${user.id }" name="id"/>
					  
					  <div class="control-group">
					    <label class="control-label" for="inputPassword">旧密码：</label>
					    <div class="controls">
					      <input name="oldpassword" type="password" id="inputPassword" placeholder="Password">
					    </div>
					  </div>
					   <div class="control-group">
					    <label class="control-label" for="inputPassword">新密码：</label>
					    <div class="controls">
					      <input name="newpassword" type="password" id="inputPassword" placeholder="Password">
					    </div>
					  </div>
					   
					  <button type="subimt" class="btn btn-primary" style="margin-left:200px;margin-top:20px;">修改资料</button>
					  
					</form>
					
					
				</div>
				  		
				 

				<div class="clear"></div>
				<div class="foot_end">
					<!--下面的东西-->
				</div>
				
			</div>
			<div class="clear">
				
			</div>
		</div>
		<!--意见反馈-->
	<%@ include file="include/idea.jsp" %>
	</div>
	<!--end-->
	<!-- 最后的脚本 -->
	<%@include file="include/footcenter.jsp" %>
	<script src="../js/jquery.js" type="text/javascript"></script>
	<script src="../js/bootstrap.min.js" type="text/javascript"></script>
	
	
</body>
</html>







